<%--
  Created by IntelliJ IDEA.
  Author: WaveHi
  Contact: HJBWaveHi@163.com
  Date: 26/9/2021
  Time: 下午 2:41
  Description: 
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="/page/common/head.jsp"%>
    <title>user_login</title>
    <script type="text/javascript" src="/static/js/user_login.js"></script>
</head>
<body>
    <span id="user-login-errorMsg">${requestScope.errorMsg}${sessionScope.VCODE_IN_SESSION}</span>
    <form id="user-login-form" action="userServlet" method="post">
        <input id="sessionVCode" type="hidden" value="${sessionScope.VCODE_IN_SESSION}"/>
        <input type="hidden" name="action" value="login"/>
        <input id="username" type="text" name="username" value="${requestScope.username}" placeholder="Your username"/>
        <input id="password" type="password" name="password" placeholder="Your password"/>
        <span>Verification code : </span><input id="verification-code" type="text" name="verificationCode" />
        <canvas id="canvas" width="100" height="30"></canvas>
        <button id="user-login-btn" type="submit" form="user-login-form">Login</button>
        <span>There is no account?</span><a href="/page/user/user_register.jsp">Register</a>
    </form>
</body>
</html>
